package com.ruoyi.system.service.impl;

import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.SysPost;
import com.ruoyi.system.domain.TenantPost;
import com.ruoyi.system.mapper.SysPostMapper;
import com.ruoyi.system.mapper.SysUserPostMapper;
import com.ruoyi.system.mapper.TenantPostMapper;
import com.ruoyi.system.mapper.TenantUserPostMapper;
import com.ruoyi.system.service.ISysPostService;
import com.ruoyi.system.service.ITenantPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 岗位信息 服务层处理
 * 
 * @author ruoyi
 */
@Service
public class TenantPostServiceImpl implements ITenantPostService
{

    @Autowired
    private TenantPostMapper tenantPostMapper;

    @Override
    public List<TenantPost> selectTenantPostList(TenantPost post) {
        return tenantPostMapper.selectTenantPostList(post);
    }

    @Override
    public int deleteTenantPostByIds(Long[] tenantIds) {


        return tenantPostMapper.deleteTenantPostByIds(tenantIds);
    }

    @Override
    public int insertTenantPost(TenantPost tenantPost) {
        return tenantPostMapper.insertTenantPost(tenantPost);

    }

    @Override
    public TenantPost selecttePostById(Long postId) {


        return tenantPostMapper.selecttePostById(postId);
    }

    @Override
    public int updateTenantPost(TenantPost tenantPost) {


        return tenantPostMapper.updateTenantPost(tenantPost);

    }
}
